Write-Only Property (WOP)

Description:

WOP suggests to avoid declaring write-only properties. A write-only property is a property that has only a set accessor. A write-only property should be made either a read-write property by adding a get accessor or converted to a setter method.

Incorrect:

Employee = class
    public
        procedure set_Name(const name:String);
        property Name:String write set_Name;
end;

Correct:

Employee = class
    public
        procedure set_Name(const name:String);
        function get_Name():String;
        property Name:String read get_Name write set_Name;
end;